package org.zjx.prop.repository;

import org.zjx.prop.domain.model.ItemInstance;
import java.util.List;
import java.util.Optional;

public interface ItemInstanceRepository {
    Optional<ItemInstance> findById(int instanceId);
    List<ItemInstance> findByPlayerId(String playerId);  // 新增方法
    List<ItemInstance> findAllById(List<Integer> instanceIds);
    ItemInstance save(ItemInstance instance);
    boolean update(List<ItemInstance> itemInstances);
    void delete(int instanceId);
}